The SetMovieColorTable function allows you to associate a color table with a movie.
pascal OSErr SetMovieColorTable (
Movie theMovie,
CTabHandle ctab);
The color table you supply may be used to modify the palette of indexed display devices at playback time. If you are using the movie controller, be sure to set the mcFlagsUseWindowPalette flag. If you are not using the movie controller, you should retrieve the movie's color table (using the GetMovieColorTable function) and supply it to the Palette Manager.
The toolbox makes a copy of the color table, so it is your responsibility to dispose of the color table when you are done with it. If the movie already has a color table, the toolbox uses the new table to replace the old one.
The CopyMovieSettings function copies the movie's color table, along with the other settings information.
The GetMovieColorTable function allows you to retrieve a movie's color table.
pascal OSErr GetMovieColorTable (
Movie theMovie,
CTabHandle *ctab);
The SetTrackGWorld function allows you to force a track to draw into a particular graphics world. This graphics world may be different from that of the movie.
pascal void SetTrackGWorld(
Track theTrack,
CGrafPtr port,
GDHandle gdh,
TrackTransferUPP proc,
long refCon);
After the SetTrackGWorld function draws a track, it calls your transfer procedure to copy the track to the actual movie graphics world. When your transfer procedure is called, the current graphics world is set to the correct destination. You can also install a transfer procedure and set the graphics world to nil . If the graphics world is set to nil , SetTrackGWorld calls your transfer procedure only as a notification that the track has been drawn; no transfer needs to take place.
| Previous | Chapter Contents | Chapter Top | Next |